package cn.kgc.ssm.mapper;

import cn.kgc.ssm.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/5/8
 * @description
 */
public interface UserMapper {

    List<User> selecList();

    User selectByUserName(String username);

    void editPersonalInfo(User user);

    void editPersonalPassword(@Param("newPassword") String newPassword, @Param("id")Long id);

    List<User> searchUsers(String nickname);

    void insertUser(User user);

    User selectById(Integer id);

    void updateUser(User user);

    void deleteUser(@Param("ids") List<Integer> ids);

    void updatePassword(@Param("id") Integer id, @Param("password") String md5Password);
}
